<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float|null $vip1 购买金额
 * @property float|null $vip2 购买金额
 * @property float|null $vip3 购买金额
 * @property float|null $vip4 购买金额
 * @property float|null $vip5 购买金额
 * @property int|null $p_vip2 配额
 * @property int|null $p_vip3 配额
 * @property int|null $p_vip4 配额
 * @property int|null $p_vip5 配额
 * @property float|null $r1_1 推荐奖
 * @property float|null $r1_2 推荐奖
 * @property float|null $r1_3 推荐奖
 * @property float|null $r1_4 推荐奖
 * @property float|null $r1_5 推荐奖
 * @property float|null $r2_1 推荐奖
 * @property float|null $r2_2 推荐奖
 * @property float|null $r2_3 推荐奖
 * @property float|null $r2_4 推荐奖
 * @property float|null $r2_5 推荐奖
 * @property float|null $r3_1 推荐奖
 * @property float|null $r3_2 推荐奖
 * @property float|null $r3_3 推荐奖
 * @property float|null $r3_4 推荐奖
 * @property float|null $r3_5 推荐奖
 * @property float|null $r4_1 推荐奖
 * @property float|null $r4_2 推荐奖
 * @property float|null $r4_3 推荐奖
 * @property float|null $r4_4 推荐奖
 * @property float|null $r4_5 推荐奖
 * @property float|null $r5_1 推荐奖
 * @property float|null $r5_2 推荐奖
 * @property float|null $r5_3 推荐奖
 * @property float|null $r5_4 推荐奖
 * @property float|null $r5_5 推荐奖
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['vip1', 'vip2', 'vip3', 'vip4', 'vip5', 'r1_1', 'r1_2', 'r1_3', 'r1_4', 'r1_5', 'r2_1', 'r2_2', 'r2_3', 'r2_4', 'r2_5', 'r3_1', 'r3_2', 'r3_3', 'r3_4', 'r3_5', 'r4_1', 'r4_2', 'r4_3', 'r4_4', 'r4_5', 'r5_1', 'r5_2', 'r5_3', 'r5_4', 'r5_5'], 'number'],
            [['p_vip2', 'p_vip3', 'p_vip4', 'p_vip5'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip4' => 'Vip 4',
            'vip5' => 'Vip 5',
            'p_vip2' => 'P Vip 2',
            'p_vip3' => 'P Vip 3',
            'p_vip4' => 'P Vip 4',
            'p_vip5' => 'P Vip 5',
            'r1_1' => 'R 1  1',
            'r1_2' => 'R 1  2',
            'r1_3' => 'R 1  3',
            'r1_4' => 'R 1  4',
            'r1_5' => 'R 1  5',
            'r2_1' => 'R 2  1',
            'r2_2' => 'R 2  2',
            'r2_3' => 'R 2  3',
            'r2_4' => 'R 2  4',
            'r2_5' => 'R 2  5',
            'r3_1' => 'R 3  1',
            'r3_2' => 'R 3  2',
            'r3_3' => 'R 3  3',
            'r3_4' => 'R 3  4',
            'r3_5' => 'R 3  5',
            'r4_1' => 'R 4  1',
            'r4_2' => 'R 4  2',
            'r4_3' => 'R 4  3',
            'r4_4' => 'R 4  4',
            'r4_5' => 'R 4  5',
            'r5_1' => 'R 5  1',
            'r5_2' => 'R 5  2',
            'r5_3' => 'R 5  3',
            'r5_4' => 'R 5  4',
            'r5_5' => 'R 5  5',
        ];
    }
}
